<%--
  User: Shengzhao Li
  Date: 13-10-9
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<div class="alert alert-block alert-info">
    <form id="moveTaskForm" action="${contextPath}/developer/task_action/move_task" class="form-inline">
        <input name="guid" type="hidden" value="${moveTaskDto.guid}"/>

        <p>
            Just move the task <strong>${moveTaskDto.taskName}</strong>(#${moveTaskDto.taskNumber})
            to another sprint.
        </p>

        <p>
            Please choose the target sprint
            <select id="targetSprintSelect" name="targetSprintGuid">
                <option value="">--- select sprint ---</option>
                <c:forEach items="${moveTaskDto.targetSprints}" var="s">
                    <option value="${s.guid}">${s.name}</option>
                </c:forEach>
            </select>
            <span class="label label-warning hide" id="targetSprintSelectError">Target sprint is required.</span>
        </p>
    </form>
</div>